package cn.darkhorse.mesmeter.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author yuan jun
 * @since 2023-01-06
 */
@Getter
@Setter
  @TableName("mes_meter")
@ApiModel(value = "MesMeter对象", description = "")
public class MesMeter implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("主键")
        @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      @ApiModelProperty("所属部门")
      private Long dept;

      @ApiModelProperty("类型:对应字典项")
      private String meterType;

      @ApiModelProperty("上级id")
      private Long parentId;

      @ApiModelProperty("祖先")
      private String ancestors;

      @ApiModelProperty("电柜")
      private String meterCabinet;

      @ApiModelProperty("位号")
      private String tagNo;

      @ApiModelProperty("流程")
      private String processPosition;

      @ApiModelProperty("系统")
      @TableField("`system`")
      private String system;

      @ApiModelProperty("说明")
      private String description;

      @ApiModelProperty("创建人")
      private Long creator;

      @ApiModelProperty("创建日期")
      private LocalDateTime creatorDate;

      @ApiModelProperty("创建时间")
      private LocalDateTime gmtCreate;

      @ApiModelProperty("修改时间")
      private LocalDateTime gmtModify;

      @ApiModelProperty("电表uuid")
      private String meterUuid;

      @ApiModelProperty("电表名称(电柜+位号)")
      private String meterName;

      @ApiModelProperty("对应的历史数据表名称")
      private String meterHistoryTableName;

      @ApiModelProperty("用电名称id")
      private Long electricityId;

      @ApiModelProperty("用电名称")
      private String electricityName;

      @ApiModelProperty("用电类型")
      private Integer electricityType;
      @ApiModelProperty("设备硬件对应id")
      private String gatewayDeviceId;
      @ApiModelProperty("设备历史表名")
      private String historyTableName;


}
